<html>
<head><meta charset="utf-8"><title>How to use staged_api · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html">How to use staged_api</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="228571554"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228571554" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228571554">(Mar 03 2021 at 10:45)</a>:</h4>
<p>I'd like to write a minimal reproduction for <a href="https://github.com/rust-lang/rust/issues/81883">https://github.com/rust-lang/rust/issues/81883</a> but I'd need <code>feature(staged_api)</code> (apparently: <a href="https://github.com/rust-lang/rust/issues/81883#issuecomment-775383110">https://github.com/rust-lang/rust/issues/81883#issuecomment-775383110</a>). I tried some Googling and checked out the unstable book, but didn't find anything about how to use it. Is it documented anywhere? If not, can someone point me at some example usage?</p>



<a name="228574243"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228574243" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> hyd-dev <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228574243">(Mar 03 2021 at 11:09)</a>:</h4>
<p>I'm not sure if this helps? <a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=ab4b943d055d77e4fcb59dc1f9a669d2">https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=ab4b943d055d77e4fcb59dc1f9a669d2</a></p>



<a name="228601382"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228601382" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228601382">(Mar 03 2021 at 14:34)</a>:</h4>
<p>It would be nice to add it to the unstable book</p>



<a name="228617659"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228617659" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228617659">(Mar 03 2021 at 16:05)</a>:</h4>
<p>Technically it's there, just refuses to explain anything because it's internal to the compiler</p>



<a name="228617665"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228617665" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228617665">(Mar 03 2021 at 16:05)</a>:</h4>
<p><a href="https://doc.rust-lang.org/nightly/unstable-book/language-features/staged-api.html">https://doc.rust-lang.org/nightly/unstable-book/language-features/staged-api.html</a></p>



<a name="228618998"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228618998" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228618998">(Mar 03 2021 at 16:12)</a>:</h4>
<p><span class="user-mention silent" data-user-id="374396">hyd-dev</span> <a href="#narrow/stream/122651-general/topic/How.20to.20use.20staged_api/near/228574243">said</a>:</p>
<blockquote>
<p>I'm not sure if this helps? <a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=ab4b943d055d77e4fcb59dc1f9a669d2">https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=ab4b943d055d77e4fcb59dc1f9a669d2</a></p>
</blockquote>
<p>Yes, that's great, thanks! Going to look into that tomorrow I think</p>



<a name="228659485"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228659485" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228659485">(Mar 03 2021 at 20:11)</a>:</h4>
<p><span class="user-mention" data-user-id="226095">@Dirkjan Ochtman</span> The documentation for <code>staged_api</code> is at <a href="https://rustc-dev-guide.rust-lang.org/stability.html#staged_api">https://rustc-dev-guide.rust-lang.org/stability.html#staged_api</a>.  I think it would be great to at least add a link in the unstable book to the rustc-dev-guide (I wish every chapter in the unstable book said something useful).</p>
<p>I realize that documentation for <code>staged_api</code> is pretty short, but hopefully the entire chapter gives a little more context on stability attributes and how they interact.  The <code>staged_api</code> attribute really doesn't do much on its own, so there's not much to say about it.</p>
<p>If you have any questions not answered in that chapter, feel free to ask.  I may be able to answer them, or if not try to figure it out. Or you can open a PR on the rustc-dev-guide if  there's something you'd like to add.</p>



<a name="228663731"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228663731" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228663731">(Mar 03 2021 at 20:37)</a>:</h4>
<p>Huh, I actually searched for "rustc dev guide staged_api", I think, and didn't find that</p>



<a name="228670744"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228670744" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228670744">(Mar 03 2021 at 21:22)</a>:</h4>
<p>huh it's the first result for me <a href="/user_uploads/4715/a3ZSCn8JrUHhmc_YVw8CRv15/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/a3ZSCn8JrUHhmc_YVw8CRv15/image.png" title="image.png"><img src="/user_uploads/4715/a3ZSCn8JrUHhmc_YVw8CRv15/image.png"></a></div>



<a name="228761628"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/How%20to%20use%20staged_api/near/228761628" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dirkjan Ochtman <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/How.20to.20use.20staged_api.html#228761628">(Mar 04 2021 at 12:16)</a>:</h4>
<p>I default to DuckDuckGo, which apparently doesn't do as well on this particular query</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>